//
//  MyPrivateMessageModel.m
//  OnionHome
//
//  Created by fengjie on 2019/10/14.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import "MyPrivateMessageModel.h"

@implementation MyPrivateMessageModel
-(void)setMessages:(NSMutableArray *)messages{
    _messages = messages;
    if (messages.count > 0) {
        for (NSDictionary * dic in messages) {
            MyPrivateMessageModel * model = [[MyPrivateMessageModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.modelArray addObject:model];
        }
    }
}
-(NSMutableArray<MyPrivateMessageModel *> *)modelArray{
    if (!_modelArray) {
        _modelArray =[NSMutableArray array];
    }
    return _modelArray;
}
@end
